/**
 * @author (Jeff Thomas) 
 * @version (10.25.2007)
 */
public class CandyDistributor {
    private int candiesYou;
    private int candiesMe;
    private int count;

    /**
     * Constructor for objects of class CandyDistributor
     */
    public CandyDistributor() {
        // initialise instance variables
        candiesYou = 0;
        candiesMe = 0;
        count = 1;
    }

    public void nextCandy() {
        if (count % 2 != 0) {
            candiesYou = candiesYou + 1;
            count = count + 1;
            System.out.println(candiesYou + " for you.");
        }
        else {
            candiesMe = candiesMe + 1;
            count = count + 1;
            System.out.println(candiesMe + " for me.");
        }
    }
}
